package o;

import android.content.Context;
import com.huawei.appgallery.foundation.account.bean.UserSession;
import com.huawei.appgallery.foundation.ui.framework.cardframe.bean.BaseCardBean;
import com.huawei.updatesdk.service.otaupdate.UpdateStatusCode.DialogButton;
import java.lang.ref.SoftReference;

public class eob implements o.cii.c {

    static class c implements eqn {
        private SoftReference<Context> ˏ;

        public c(Context context) {
            this.ˏ = new SoftReference(context);
        }

        public void onResult(int i) {
            if (202 == i) {
                eny.ˊ().ˊ((Context) this.ˏ.get());
            }
            eqq.ˋ().ˊ("WishEventListener");
        }
    }

    static class d implements AccountBussinessListener {
        private d() {
        }

        public void onAccountBusinessResult(ccp o_ccp) {
            if (DialogButton.CONFIRM == o_ccp.ˎ) {
                eqq.ˋ().ˊ("WishEventListener");
            }
            eoj.ˋ().ˊ("WishEventListener");
        }
    }

    public void ˏ(Context context, BaseCardBean baseCardBean) {
        if (!doo.ˊ(context)) {
            eny.ˊ().ˊ(context);
        } else if (UserSession.getInstance().isLoginSuccessful()) {
            eny.ˊ().ˊ(context);
        } else {
            eoj.ˋ().ˎ("WishEventListener", new d());
            eqq.ˋ().ˎ("WishEventListener", new c(context));
            eod.ॱ(context);
        }
    }
}
